/* 模态框配色 */

@import "./color";
@mark-red: #fa3f43; // 主色红
@hover-mark-red: #c8393c; // 主色hover
.modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(100, 100, 100, .3);
  &.fade {
    .modal-dialog {
      left: 50%;
      position: absolute !important;
      margin: 0 auto;
      top: 50%;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }
  }
  &.in {
    .modal-dialog {
      top: 50%;
      left: 50%;
      position: absolute;
      margin: 0 auto;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }
  }
  .modal-content {
    cursor: default;
    border-radius: 4px;
    background-color: #F5F5F5;
    border: 1px solid #E8E8E8;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .6);
    .btn-close {
      position: absolute;
      top: -30px;
      right: -30px;
      width: 28px;
      height: 28px;
      cursor: pointer;
    }
    .modal-body {
      padding: 20px;
      .btn {
        font-size: 1.6rem;
        min-width: 80px;
        line-height: 30px;
        padding: 0;
        border-radius: 4px;
        border: none;
        cursor: pointer;
      }
      // bootstrap 默认button primary修改成财迷风格
      .btn-primary {
        background-color: @mark-red;
        border-color: @mark-red !important;
        color: #FFF;
        &:hover {
          background-color: @hover-mark-red;
          border-color: @hover-mark-red !important;
          color: #fff;
        }
      }
      .btn-default {
        border: 1px solid transparent;
        border-color: #E8E8E8;
        background-color: #FFF;
        color: #898989;
        &:hover {
          border-color: #EEE;
          color: #666;
        }
      }
      .btn-primary[disabled] {
        background-color: lighten(@mark-red, 5%) !important;
        border-color: lighten(@mark-red, 5%) !important;
      }
    }
  }
}